$(function () {
    getUserName();
})

function getUserName(){
    let data=myAjax("/back/user/manage","","get");
        if (data==400){
            window.open("/login.html");
        } else {
            $("#username").text(data.username);//对当前tbody进行赋值
        }
};

//前台点击后div变颜色
function daohang(aa) {
    $("#founts div").css("background-color","rgb(17,17,17)");//先将背景颜色设置为默认色
    $(aa).css("background-color","red" );//然后设置根据前台传过来的参数确定div进行修改背景颜色
}